from PyQt5.QtCore import Qt, pyqtSlot, pyqtSignal
from PyQt5.QtGui import QKeySequence
from PyQt5.QtNetwork import QHostInfo
from PyQt5.QtWidgets import QWidget, QMessageBox
from QCandyUi.CandyWindow import colorful
from ui_comTcp import Ui_ComTcp



@colorful('blueGreen')
class ComTcp(QWidget):
    clientReadData = pyqtSignal(int, str, int, bytearray)
    clientDisConnect = pyqtSignal(int, str, int)

    def __init__(self):
        QWidget.__init__(self)
        self.ui = Ui_ComTcp()
        self.ui.setupUi(self)
        self.setFocusPolicy(Qt.ClickFocus)  # 随便点击便聚焦


    @pyqtSlot()
    def on_pushButtonClear_clicked(self):
        print(123)